//
//  JYTLearnTimeFooter.m
//  JYT_IOS
//
//  Created by nxa-tankeke on 16/12/29.
//  Copyright © 2016年 nxa-yuanguoxiang. All rights reserved.
//

#import "JYTLearnTimeFooter.h"

@implementation JYTLearnTimeFooter

- (id)initWithFrame:(CGRect)frame
{
    if(self = [super initWithFrame:frame])
    {
        [self setBackgroundColor:[UIColor whiteColor]];
        
        CGFloat w = frame.size.width / 5;
        
        for (int i = 0; i < 5; i++) {
            UILabel *labelOne = [[UILabel alloc]initWithFrame:CGRectMake(i * w, 0, w, 35)];
            [labelOne setFont:[UIFont systemFontOfSize:15.0]];
            [labelOne setTextColor:[UIColor blackColor]];
            labelOne.textAlignment = NSTextAlignmentCenter;
            [self addSubview:labelOne];
            if (i == 1) {
                [labelOne setText:@"第一部分"];
            } else if(i == 2){
                [labelOne setText:@"第二部分"];
            }else if(i == 3){
                [labelOne setText:@"第三部分"];
            }else if(i == 4){
                [labelOne setText:@"第四部分"];
            }
            
        }
        
        for (int i = 0; i < 5; i++) {
            UILabel *labelOne = [[UILabel alloc]initWithFrame:CGRectMake(i * w, 35, w, 30)];
            [labelOne setFont:[UIFont systemFontOfSize:13.0]];
            [labelOne setTextColor:[UIColor blackColor]];
            labelOne.textAlignment = NSTextAlignmentCenter;
            [self addSubview:labelOne];
            if (i == 0) {
                [labelOne setText:@"总需"];
            } else if(i == 1){
                [labelOne setText:@"12时"];
            }else if(i == 2){
                [labelOne setText:@"12时"];
            }else if(i == 3){
                [labelOne setText:@"12时"];
            }else if(i == 4){
                [labelOne setText:@"12时"];
            }
            
        }
        
        for (int i = 0; i < 5; i++) {
            UILabel *labelOne = [[UILabel alloc]initWithFrame:CGRectMake(i * w, 65, w, 30)];
            [labelOne setFont:[UIFont systemFontOfSize:13.0]];
            [labelOne setTextColor:[UIColor blackColor]];
            labelOne.textAlignment = NSTextAlignmentLeft;
            [self addSubview:labelOne];
            if (i == 0) {
                [labelOne setText:@"已学"];
                labelOne.textAlignment = NSTextAlignmentCenter;
            } else if(i == 1){
                [labelOne setText:@"12时19分钟"];
            }else if(i == 2){
                [labelOne setText:@"12时19分钟"];
            }else if(i == 3){
                [labelOne setText:@"12时19分钟"];
            }else if(i == 4){
                [labelOne setText:@"12时19分钟"];
            }
            
        }
        
        
    }
    return self;
}



@end
